places view: Don't spew needlessly
authorMatthias Clasen <mclasen@redhat.com>
Fri, 28 Aug 2015 16:15:39 +0000 (12:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Aug 2015 16:15:39 +0000 (12:15 -0400)
The check here was obviously meant to filter out cancellations,
not warn for them.

gtk/gtkplacesview.c

index afc114b30c3e07f4e4b5a9d5f418acf7ea922132..2792973221e4c27aa34fcda8e7593c89e68dbbbc 100644 (file)
@@ -956,7 +956,7 @@ network_enumeration_next_files_finished (GObject      *source_object,
 
   if (error)
     {
-      if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
         g_warning ("Failed to fetch network locations: %s", error->message);
 
       g_clear_error (&error);